package oaSystem.biz;

import java.util.List;

import oaSystem.entity.Employee;
import oaSystem.entity.Message;
import oaSystem.entity.MessageAttachment;

public interface MessageBiz {
	//查询单邮件
	Message fetchMessageById(Integer id);
	//搜索并分页邮件
	List<Message> getMessageBySearch(
			Integer sessionId,
			Integer categoryId,
			int pageNum,
			int pageSize,
			String search);
	//发送邮件
	void sendMessage(Message message);
	//添加邮件
	void addMessage(Message message);
	//删除邮件
	void deleteMessageByMessageId(Integer messageId);
	//更新草稿箱
	void updateToDrafts(Message message,List<Integer> employeeIds,MessageAttachment messageAttachment);
	//添加多条邮件
	void addMessageToDrafts(Message message,List<Employee> receiver_ids,MessageAttachment messageAttachment);
	//发送邮件给审批人
	void sendMessageToApprover(Message message, Integer employeeId);
	//获取邮件条数
	int getMessageCount(Integer sessionId,Integer categoryId,String search);
	
	void updateMessage(Message message);
	
}
